// $Id: ApplicationPerspectiveListener.java 89 2012-03-31 10:43:58Z huijzer@gmail.com $
package lime;

import org.eclipse.ui.IPerspectiveDescriptor;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PerspectiveAdapter;

public class ApplicationPerspectiveListener extends PerspectiveAdapter {

	@Override
	public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
		page.closeAllEditors(true);
		page.getWorkbenchWindow().getShell().setText("Lime - " + perspective.getLabel());
	}

}